package pl.javarsovia.javarsovia4android.domain;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @author mgrzechocinski
 * @since 2010-06-12
 */
@SuppressWarnings("serial")
public class Room implements Identifiable, Serializable {

	private String id;
	private List<Lecture> lectures = new ArrayList<Lecture>();
	private String name;

	public Room(String id) {
		this.id = id;
	}

	public String getId() {
		return id;
	}

	public List<Lecture> getLectures() {
		return lectures;
	}

	public Room addLecture(Lecture lecture) {
		lectures.add(lecture);
		return this;
	}

	public Lecture getLecture(int lectureIdx) {
		return lectures.get(lectureIdx);
	}

	public String getName() {
		return name;
	}

	public Room name(String name) {
		this.name = name;
		return this;
	}

}
